import http from '@/utils/http'
 // accessToken:'Zsy2kXuSWmLZ09t62ThBYBwzVkR8x6OBCiKkdxYqIEXIJbNXPOxTykRiuJpV6BTQ',
export default {
    adminLogin(context,params){
        //这种方法可以直接在实例中then到data的值
        return http.post('/userAccount/admin/login',params)
            .then(res => {
                context.commit('setLoginData',res);
            })
            .catch(err => console.log(err));
    },
}